/**
 * Copyright © 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.xs_bookrack.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeeplus.core.persistence.Page;
import com.jeeplus.core.service.CrudService;
import com.jeeplus.modules.xs_bookrack.entity.XsBookrack;
import com.jeeplus.modules.xs_bookrack.mapper.XsBookrackMapper;

/**
 * 用户书架信息Service
 * @author 天竹子
 * @version 2021-07-15
 */
@Service
@Transactional(readOnly = true)
public class XsBookrackService extends CrudService<XsBookrackMapper, XsBookrack> {
	@Autowired
	private XsBookrackMapper xsBookrackMapper;

	public XsBookrack get(String id) {
		return super.get(id);
	}
	
	public List<XsBookrack> findList(XsBookrack xsBookrack) {
		return super.findList(xsBookrack);
	}
	
	public Page<XsBookrack> findPage(Page<XsBookrack> page, XsBookrack xsBookrack) {
		return super.findPage(page, xsBookrack);
	}
	
	@Transactional(readOnly = false)
	public void save(XsBookrack xsBookrack) {
		super.save(xsBookrack);
	}
	
	@Transactional(readOnly = false)
	public void delete(XsBookrack xsBookrack) {
		super.delete(xsBookrack);
	}
	@Transactional(readOnly = false)
	public void deleteRackBookByBookId(Integer bookId){
		xsBookrackMapper.deleteRackBookByBookId(bookId);
	}
	
}